package com.yaolonga.itfc.manager.linux.netplan;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: yaolong
 * @CreateTime: 2024-11-13  14:27
 * @Description: TODO
 * @Version: 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WifiNetplanEthernetConfig extends NetplanEthernetConfig{
    private Map<String, AccessPoint> accessPoints = new HashMap<>();
    public void addAccessPoint(String ssid, String password){
        accessPoints.put(ssid, new AccessPoint(password));
    }
    @Data
    @AllArgsConstructor
    static class AccessPoint {
        private String password;
    }
}
